﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EventModel
{
    /// <summary>
    /// 实体基类，继承此类，统一处理相同字段的值
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 主键ID，GUID
        /// </summary>
        public virtual string id { get; set; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 创建人
        /// </summary>
        public string create_by { get; set; }
        ///<summary>
        ///创建时间
        ///</summary>     
        public DateTime create_on { get; set; } = DateTime.Now;

        ///<summary>
        ///修改时间
        ///</summary>   
        public DateTime modify_on { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人
        /// </summary>
        public string modify_by { get; set; }
        ///<summary>
        ///删除标识
        ///</summary>           
        public int del { get; set; } = 0;

    }
}
